package com.xhj.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhj.entity.Banner;
import com.xhj.mapper.BannerMapper;
import com.xhj.service.BannerService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 首页banner表(CrmBanner)表服务实现类
 *
 * @author makejava
 * @since 2021-03-05 15:49:04
 */
@Service()
public class BannerServiceImpl extends ServiceImpl<BannerMapper,Banner> implements BannerService {

    @Cacheable(value = "banner",key = "'list'")
    @Override
    public List<Banner> list(Wrapper<Banner> queryWrapper) {
        return super.list(queryWrapper);
    }
}